EmptyUserSearchView.swift (768B)
1 // 2 // EmptyUserSearchView.swift 3 // damus 4 // 5 // Created by eric on 4/3/23. 6 // 7 8 // 9 // EmptyUserSearchView.swift 10 // damus 11 // 12 // Created by eric on 4/3/23. 13 // 14 15 import SwiftUI 16 17 struct EmptyUserSearchView: View { 18 var body: some View { 19 VStack { 20 Image("question") 21 .font(.system(size: 35)) 22 .padding() 23 Text("Could not find the user you're looking for", comment: "Indicates that there are no users found.") 24 .multilineTextAlignment(.center) 25 .font(.callout.weight(.medium)) 26 } 27 .foregroundColor(.gray) 28 .padding() 29 } 30 } 31 32 struct EmptyUserSearchView_Previews: PreviewProvider { 33 static var previews: some View { 34 EmptyUserSearchView() 35 } 36 } 37